<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
	</head>
	<body>
		<div>1</div>
		<div id="d2">2</div>
		<div class="d3">3</div>
		<div>4</div>
		<script type="text/javascript">
			console.log($("div").text());
			console.log($("div").html());
			
			console.log($("div:first").text());
			console.log($("div:eq(0)").text());
			console.log($("div:lt(1)").text());
			
			console.log($("#d2").text());
			
			console.log($(".d3").text());
			
			console.log($("d3+div").text());
			console.log($("div:last").text());
			console.log($("div").eq(3).text());
			console.log($("div").get(3).innerText);
			console.log($("div")[3].innerText);
		</script>
	</body>
</html>
